﻿<%@ Page Language="C#" MasterPageFile="~/rightContent.Master" AutoEventWireup="true"
    CodeBehind="sheetEdit.aspx.cs" Inherits="WEB.sheetInfo.sheetEdit" Title="委托单录入" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        table
        {
            text-align: justify;
            text-justify: inter-ideograph;
        }
        fieldset
        {
            margin: 1 em o;
            border: none;
            border-top: 1px solid #ccc;
        }
        legend
        {
            margin: 1em 0;
            padding: 0 .5em;
            background: transparent;
            font-size: 1.3em;
            font-weight: bold;
        }
    </style>
    <script language="javascript">
        var flag;
        function OpenChildWindow() {
            var result = openDialog('720', '270', 'sheetCosutmsNoInput.aspx', 'no');
            if (result != "" && result != null) {
                var ori = document.getElementById("<%=tbCustomsNo.ClientID%>").value;
                if (ori != "") ori += ",";
                document.getElementById("<%=tbCustomsNo.ClientID%>").value = ori + result;
            }
        }
        function openDialog(srcW, srcH, srcU, sl) {
            var X = 0;
            var Y = 0;
            var Cstyle;
            X = (screen.width - srcW) / 2;
            Y = (screen.height - srcH) / 2;
            Cstyle = "dialogLeft:" + X + "px;dialogTop:" + Y + "px;dialogHeight:" + srcH + "px;dialogWidth:" + srcW + "px;help:no;status:no;scroll:" + sl;
            var sReturnVal = window.showModalDialog(srcU, window, Cstyle);
            if (sReturnVal == undefined) {
                sReturnVal = window.returnValue;
            }
            return sReturnVal;
        }
        function OpenChildWindow2() {
            var result = openDialog('720', '270', 'sheetContainerNoInput.aspx', 'no');
            if (result != "" && result != null) {
                var ori = document.getElementById("<%=tbContainerNo.ClientID%>").value;
                if (ori != "") ori += ",";
                document.getElementById("<%=tbContainerNo.ClientID%>").value = result;
            }
        }
        function OpenChildWinCUS() {
            var result = openDialog('570', '550', '../customer/ChildAdd.aspx', 'no');
            if (result != "" && result != null) {
                document.getElementById("<%=tbCid.ClientID%>").value = result;
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="title" runat="server">
    委托单录入
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <table width="800px" class="distance-table" cellpadding="3" cellspacing="3">
        <tr>
            <td>
                <asp:Label ID="lbsheet" runat="server" Text="委托单号：" Visible="False"></asp:Label>&nbsp;
                <asp:Label ID="lbSheetValue" runat="server" Text="0" Visible="False"></asp:Label>
                <asp:Button ID="btCopy" runat="server" Text="复制" 
                    OnClientClick="return confirm('确定复制该单？')" CssClass="Submit_yellow" 
                    onclick="Copy_Click" Visible="False" />
            </td>
        </tr>
        <tr>
            <td>
              
            </td>
            <tr>
                <td>
                    <fieldset>
                        <legend>基本信息</legend>
                        <table>
                            <tr>
                                <td>
                                    <table width="600px" cellpadding="3" cellspacing="3">
                                        <tr>
                                            <td width="100px">
                                                客户名称：
                                            </td>
                                            <td width="180">
                                                <asp:TextBox ID="tbCid" runat="server" OnTextChanged="tbCid_TextChanged" AutoPostBack="true"></asp:TextBox>
                                                <asp:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" ServiceMethod="GetCustomersName"
                                                    TargetControlID="tbCid" MinimumPrefixLength="1" CompletionInterval="358">
                                                </asp:AutoCompleteExtender>
                                                <font color="#FF3300">
                                                <asp:LinkButton ID="lbAddCus" runat="server" Font-Bold="True" 
                                                    Font-Italic="False" Font-Names="Bauhaus 93" Font-Overline="False" 
                                                    Font-Size="Large" Font-Underline="False" ForeColor="#3333FF" ToolTip="添加客户">+</asp:LinkButton>
                                                </font>
                                            </td>
                                            <td align="right">
                                                提单号：
                                            </td>
                                            <td>
                                                <asp:TextBox ID="tbLadingBillNo" runat="server" MaxLength="25"></asp:TextBox>
                                                <font color="#FF3300">*</font>
                                            </td>
                                        </tr>
                                        <td width="100px">
                                            进出口日期：
                                        </td>
                                        <td width="180">
                                            <asp:TextBox ID="tbGency" runat="server" class="Wdate" AutoPostBack="False"></asp:TextBox>
                                            <font color="#FF3300">*</font>
                                        </td>
                                        <td align="right">
                                            进出口类别：<!--业务类别：-->
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="ddlInOut" runat="server" Width="150px">
                                            </asp:DropDownList>
                                            <font color="#FF3300">*</font>
                                        </td>
                                        <tr>
                                            <td width="100px">
                                                合同号：
                                            </td>
                                            <td width="180">
                                                <asp:TextBox ID="tbContractNo" runat="server" MaxLength="25"></asp:TextBox>
                                            </td>
                                            <td align="right">
                                                货名：
                                            </td>
                                            <td>
                                                <asp:TextBox ID="tbGoodsName" runat="server" MaxLength="30"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                船名：
                                            </td>
                                            <td>
                                                <asp:TextBox ID="tbshipname" runat="server" MaxLength="30"></asp:TextBox>
                                            </td>
                                            <td align="right">
                                             货物类别：</td>
                                            <td width="180">
                                                <asp:DropDownList ID="ddlgoodsType"  runat="server" Width="150px">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td width="100px">
                                                数量：
                                                                                     <td colspan="3">
                                                <asp:TextBox ID="tbCount1" runat="server" Width="85px" MaxLength="20"></asp:TextBox>
                                                <asp:DropDownList ID="ddlUnit1" runat="server">
                                                </asp:DropDownList>
                                                <asp:TextBox ID="tbCount2" runat="server" Width="85px" MaxLength="20"></asp:TextBox>
                                                <asp:DropDownList ID="ddlUnit2" runat="server">
                                                </asp:DropDownList>
                                                <asp:TextBox ID="tbCount3" runat="server" Width="85px" MaxLength="20"></asp:TextBox>
                                                <asp:DropDownList ID="ddlUnit3" runat="server">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                毛重：
                                            </td>
                                            <td>
                                                <asp:TextBox ID="tbweight" runat="server" MaxLength="15"></asp:TextBox>
                                            </td>
                                            <td align="right">
                                                业务类别：</td>
                                            <td width="180">
                                                <asp:DropDownList ID="ddltypeID"  runat="server" Width="150px">
                                                    <asp:ListItem Value="1">单独报关</asp:ListItem>
                                                    <asp:ListItem Value="2">单独报检</asp:ListItem>
                                                    <asp:ListItem Value="3">报关报检</asp:ListItem>
                                                </asp:DropDownList>
                                                 <font color="#FF3300">*</font>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td valign="top">
                                    <div style="border: none; width: 160px;">
                                        <asp:Label ID="lbRemark" Font-Size="14px" ForeColor="Blue" runat="server" Text="没有可以显示的工作要求"
                                            Visible="False"></asp:Label>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                </td>
            </tr>
        </tr>
        <tr>
            <td>
                <fieldset>
                    <legend>报关报检</legend>
                    <table cellpadding="3" cellspacing="3">
                        <tr>
                            <td width="100px">
                                报关单号：
                            </td>
                            <td colspan="5">
                                <asp:TextBox ID="tbCustomsNo" runat="server" TextMode="MultiLine" Width="455px" MaxLength="990"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td width="100px">
                                报检号：
                            </td>
                            <td>
                                <asp:TextBox ID="tbInspectionNo" runat="server" MaxLength="35"></asp:TextBox>
                            </td>
                            <td align="right" width="135">
                                批次号：
                            </td>
                            <td>
                                <asp:TextBox ID="tbBatchNO" runat="server" MaxLength="25"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td width="100px">
                                检验机构：
                            </td>
                            <td width="130px">
                                <asp:TextBox ID="tbInspection" runat="server" MaxLength="50"></asp:TextBox>
                            </td>
                            <td align="right" width="135">
                                检验项目：
                            </td>
                            <td>
                                <asp:TextBox ID="tbTestItem" runat="server" MaxLength="100"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </td>
        </tr>
        <tr>
            <td>
                <fieldset>
                    <legend>结算</legend>
                    <table cellpadding="3" cellspacing="3">
                        <tr>
                            <td width="100px">
                                贸易方式：
                            </td>
                            <td width="180">
                                <asp:DropDownList ID="ddlTradeType" runat="server" Width="155px">
                                </asp:DropDownList>
                                <font color="#FF3300">*</font>
                            </td>
                            <td align="right" width="110px">
                                危险品：
                            </td>
                            <td>
                                <asp:CheckBox ID="ckDG" runat="server"></asp:CheckBox>
                            </td>
                        </tr>
                        <tr>
                            <td width="100px">
                                船舶代理：
                            </td>
                            <td width="180">
                                <asp:TextBox ID="tbAgency" runat="server" MaxLength="15"></asp:TextBox>
                            </td>
                            <td align="right" width="110px">
                                船公司：
                            </td>
                            <td>
                                <asp:TextBox ID="tbshipCompany" runat="server" MaxLength="25"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td width="100px">
                                订单号(PO)：
                            </td>
                            <td width="180">
                                <asp:TextBox ID="tbPO" runat="server" MaxLength="25"></asp:TextBox>
                            </td>
                            <td align="right" width="110px">
                                头程提单号：
                            </td>
                            <td>
                                <asp:TextBox ID="tbHeadBillNo" runat="server" MaxLength="25"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td width="100px">
                                运输公司：
                            </td>
                            <td width="180">
                                <asp:TextBox ID="tbTransport" runat="server" MaxLength="100"></asp:TextBox>
                            </td>
                            <td align="right" width="110px">
                                型号：
                            </td>
                            <td>
                                <asp:TextBox ID="tbModel" runat="server" maxlengtb="25" MaxLength="25"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td width="100px">
                                集装箱号：
                            </td>
                            <td colspan="5" width="180">
                                <asp:TextBox ID="tbContainerNo" runat="server" Height="61px" TextMode="MultiLine"
                                    Width="455px" MaxLength="990"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td width="100px">
                                发票抬头：
                            </td>
                            <td width="180">
                                <asp:TextBox ID="tbInvTitle" runat="server" MaxLength="50"></asp:TextBox>
                            </td>
                            <td align="right">
                                挂账单位：
                            </td>
                            <td>
                                <asp:TextBox ID="tbRegUnit" runat="server" MaxLength="100"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </td>
        </tr>
        <tr>
            <td>
                <fieldset>
                    <legend>归档</legend>
                    <table cellpadding="3" cellspacing="3">
                        <tr>
                            <td width="100px">
                                归档号：
                            </td>
                            <td>
                                <asp:TextBox ID="tbFilingNo" runat="server" MaxLength="25"></asp:TextBox>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td width="100px">
                                移交号：
                            </td>
                            <td>
                                <asp:TextBox ID="tbTransferNo1" runat="server" MaxLength="25"></asp:TextBox>
                                #
                            </td>
                            <td>
                                <asp:TextBox ID="tbTransferNo2" runat="server" MaxLength="25" Width="130px"></asp:TextBox>
                                #
                            </td>
                            <td>
                                <asp:TextBox ID="tbTransferNo3" runat="server" MaxLength="25"></asp:TextBox>
                                #
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </td>
        </tr>
        <tr>
            <td>
                <fieldset>
                    <table>
                        <tr>
                            <td width="105px">
                                备注：
                            </td>
                            <td colspan="2">
                                <asp:TextBox ID="tbRemark" runat="server" Width="455px" MaxLength="250" Height="60px"
                                    TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td align="center" width="100px">
                                &nbsp;
                            </td>
                            <td align="center">
                                &nbsp;
                            </td>
                            <td align="center">
                                <asp:Button ID="btnEdit" runat="server" OnClick="btnEdit_Click" Text="Button" CssClass="Submit_yellowbig" />
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </td>
        </tr>
    </table>
    <table cellpadding="2" cellspacing="2" class="distance-table" style="width: 600px;">
    </table>
    <div class="descrption">
        <asp:Label ID="Label1" runat="server" Text="--备注：</br>--<font color=#0066CC>*必填项为必须填项，注意下拉列表的选择</font></br>--<font color=#0066CC>#不重复项，即跟以往的单号不能重复</font></br>--<font color=#0066CC>注意数量，金额的格式，不能为数字外的其他字符</font>">
        </asp:Label>
    </div>
</asp:Content>
